p type and n type semiconductors